package com.jhh.pay.center.service.cloud.path;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author tangxd
 * @Description: TODO
 * @date 2017/12/8
 */
@Service
public class PayChannelApiPathGetterImpl implements PayChannelApiPathGetter {
    @Autowired
    private PayChannelApiConfigProperties properties;

    @Override
    public String getPath(String apiName) {
        if (properties.getPaths().containsKey(apiName)) {
            return properties.getPaths().get(apiName);
        }
        return null;
    }
}
